﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once
#include "GcmpModel.h"

namespace gcmp
{
    class IElement;

    class GCMP_MODEL_EXPORT ElementsImportUtils
    {
    public:

        /*!
        *@brief      替换对象ID;
        *@author     zhangkai;
        *@date       2021年09月15日
        *@param[in]  IElement* pElement 被替换的Element;
        *@param[in]  const std::unordered_map<ElementId, ElementId, ElementIdHash>& Id映射关系;
        *@return     void
        */
        static void ReplaceElementId(IElement* pElement, const std::unordered_map<ElementId, ElementId, ElementIdHash>& mapOldNewId);
    };
}
